<%@page import="guest.GuestVo"%>
<%@page import="guest.Guest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Modify.jsp</title>
<script src="./guest/guest.js"></script>
</head>
<body>
<jsp:useBean id="vo" class="guest.GuestVo"/>
<jsp:setProperty property="*" name="vo"/>

<%
Guest g = new Guest();
g.setVo(vo);
GuestVo gv = g.view();
%>
<div id="modi_main">
	<h1>방명록 수정</h1>
	<br/>
	
	<form name="frm" method="post" action="index2.jsp?inc_center=./guest/modify_result.jsp">
		<div>
			이름 : <input type="text" id="mid" name="mid" value="<%=gv.getMid()%>"><br/>
			제목 : <input type="text" id="subject" name="subject" value="<%=gv.getSubject()%>"><br/>
			내용 : <textarea id="content" name="content"><%=gv.getContent()%></textarea><br/>
		</div>
		
		<input type="hidden" name="serial" value="<%=gv.getSerial()%>">
	
		<input type="submit" id="btnModify" value="수정하기">
		<input type="button" id="btnList" value="목록">
	</form>
</div>	
<script> init(); </script>

</body>
</html>